package test;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.Preparable;

public class ExpPbAction implements Preparable {
	private List<TInfPackage> packageList = new ArrayList<TInfPackage>();
	private String id = "qqq";
	public String name = "www";

	public String execute() {
		// this.persons = service.findAll();
		return Action.SUCCESS;
	}

	public String searchGroupPackageInfo() {
		packageList = getRS();
		return Action.SUCCESS;
	}

	private List<TInfPackage> getRS() {
		List<TInfPackage> ls = new ArrayList<TInfPackage>();
		ls.add(new TInfPackage("111", "aaa"));
		ls.add(new TInfPackage("222", "bbb"));
		ls.add(new TInfPackage("333", "ccc"));
		return ls;
	}

	public List<TInfPackage> getPackageList() {
		return packageList;
	}

	public void setPackageList(List<TInfPackage> packageList) {
		this.packageList = packageList;
	}

	@Override
	public void prepare() throws Exception {
		// TODO Auto-generated method stub

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
